<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="timo-detail-page">
        <div class="timo-detail-title">基本信息</div>
        <table class="layui-table timo-detail-table">
            <colgroup>
                <col width="100px"><col>
                <col width="100px"><col>
            </colgroup>
            <tbody>
                <tr>
                    <th>主键ID</th>
                    <td th:text="${adInfo.id}"></td>
                    <th>用户</th>
                    <td th:text="${adInfo?.member?.nickname}"></td>
                </tr>
                <tr>
                
                    <th>广告</th>
                    <td><img th:src="${adInfo?.img}" alt="头像"></td>
                    <th>广告类型</th>
                      <td th:switch="${adInfo.adtypeid}">
                           <span th:case="1">首页</span>
                           <span th:case="2">商户页</span></td>
                </tr>
                <tr>
                    <th>开始时间</th>
                    <td th:text="${adInfo?.startTime}"></td>
                    <th>广告期限</th>
                    <td th:text="${adInfo?.dayValue}"></td>
                </tr>
                <tr>
                 <th>详情图</th>
                  <td><img th:src="${adInfo?.detailimg}" alt="详情图"></td>
                  
                    <th>广告费用</th>
                    <td th:text="${adInfo.fee}"></td>
                    
                </tr>
                <tr>
                    <th>创建时间</th>
                    <td th:text="${#dates.format(adInfo.createDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
                     
                </tr>
            </tbody>
        </table>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>